cmake_minimum_required(VERSION 3.8)
project(string_make_c_identifier)

string(MAKE_C_IDENTIFIER ":var@var#var%var&" out1)
message(STATUS "out1 = ${out1}")

string(MAKE_C_IDENTIFIER "8var" out2)
message(STATUS "out2 = ${out2}")
